<extend name="Public:base" />

<block name="body">
<h2>Departments</h2>
<p>List all the departments.</p>
<p><strong>Summary:</strong> {$departmentsCount} departments, {$employeesCount} Employees in Total.</p>
<table class="table table-striped table-hover table-condensed">
    <tr>
        <th>#</th>
        <th>Department</th>
        <th>Manager</th>
        <th>Employee Num</th>
    </tr>
    <volist name="departments" id="department">
    <tr>
        <td>{$department.dept_no|strtoupper}</td>
        <td><a href="{$department.dept_no|U='Department/department',array('id'=>###)}">{$department.dept_name}</a></td>
        <td>{$department.first_name}.{$department.last_name}</td>
        <td>3423</td>
    </tr>
    </volist>
</table>
</block>
